package com.time.thread.interrupt;

/**
 * @program: tes
 * @description: 没看懂，没学会
 * @author: xuejingjing
 * @create: 2021-10-19 16:26
 **/
public class Main {
    public static void main(String[] args) {
        InterruptThread interruptThread = new InterruptThread();
        interruptThread.start();
        try {
            //这个只是主线程睡觉吗？
            Thread.sleep(2000);
            interruptThread.interrupt();
        } catch (InterruptedException e) {
            System.out.println("exception....");
            e.printStackTrace();
        }
    }
}
